function pobierz(id)
{
  if(id != 1 && id != 2){
    alert('Nieprawidłowe dane!');
    return;
  }
  var url = "http://localhost/dane.php?id=" + id;
  startGETRequest(url, onComplete, onEnd);
}